home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 4 / CDPD_IV.bin / e / mailinglists / amigae.0793july.archive / 000101_crash!axion.bt.…uk!D.Higginson_Thu, 29 Jul 93 03:44:33 PST.msg < prev    next >
Internet Message Format  |  1994-05-26  |  2KB

  1. Received: by bkhouse.cts.com (V1.16/Amiga)
  2.     id AA00000; Thu, 29 Jul 93 03:44:33 PST
  3. Received: from zaphod.axion.bt.co.uk by crash.cts.com with smtp
  4.     (Smail3.1.28.1 #15) id m0oLV9I-0000nMC; Thu, 29 Jul 93 03:23 PDT
  5. Received: from elephant.axion.bt.co.uk by zaphod.axion.bt.co.uk with SMTP (PP); Thu, 29 Jul 1993 11:22:59 +0100
  6. Message-Id: <m0oLV9I-0000nMC@crash.cts.com>
  7. cc: AmigaE@bkhouse.cts.com, D.Higginson@axion.bt.co.uk
  8. In-reply-to: Your message of Wed, 28 Jul 93 15:24:06 -0700. <9307281524.1.17100@cup.portal.com>
  9. Date: Thu, 29 Jul 93 11:22:41 BST
  10. From: D.Higginson@axion.bt.co.uk
  11. To: Politikill@cup.portal.com
  12. Subject: Re: MidStr
  13.  
  14.  
  15. Check that you have got the parameters to InStr the right
  16. way round - all languages order these things differently
  17. and I can never remember which way round they go.
  18.  
  19. Next insert a WriteF('\d\n',endpos) after the endpos
  20. assignment. If there is no \n in the buffer, endpos-pos
  21. will be a negative number and could cause MidStr to return
  22. all the characters it finds.
  23.  
  24. Also check that the parameters to MidStr are right. I once
  25. got the parameters to StrCpy the wrong way round - I
  26. thought it would be (source,dest) but it isn't. Took me
  27. the best part of a day to figure that bug out.
  28.  
  29. Some E string functions require you to use E strings -
  30. i.e. declare them as s[80]:STRING or something like that.
  31. I would guess that this is the most likely problem.
  32. Remember that if you do DEF a,b:STRING then a is a LONG
  33. and b is a STRING. A similar statement in Pascal would
  34. make both variables strings - that's a feature of E which
  35. has caught me out many a time.
  36.  
  37. Hope this helps :-)
  38.  
  39. Dave.